/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-04-30
 * Time: 14:45
 */
public class Test {
    public static int sum(int n1,int n2){
        return n1 + n2;
    }
    public static double sum(double n1,double n2,double n3){
        return n1 + n2 + n3;
    }
    public static void main(String[] args) {
        System.out.println(maxNum(1,9,3));
//        System.out.println(maxNum(2,4));
//        System.out.println(sum(4,44));
//        System.out.println(sum(1.56,2.44,7.97));
    }
    public static int maxNum(int n1,int n2){
        return (n1>n2)?n1:n2;
    }
    public static int maxNum(int n1,int n2,int n3){
        int max = maxNum(n1,n2);
        return maxNum(max,n3);
    }
//    public static int sum(int n){
//        if(n > 9){
//            return (n % 10) + sum(n / 10);
//        }else{
//            return n;
//        }
//    }
}
